package com.reger.core.logging;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import com.reger.core.logging.RunTimeLog.TimeScale;
import com.reger.core.utils.AsyncUtils;

@Configuration
@EnableConfigurationProperties({ TimeScale.class })
@ComponentScan(basePackageClasses = AsyncUtils.class)
public class LoggingAutoConfiguration {
	
	@Bean
	public ServiceLogAop serviceLogAop(){
		return new ServiceLogAop();
	}

	@Bean
	public ControllerLogAop controllerLogAop(){
		return new ControllerLogAop();
	}

	@Bean
	public RunTimeLog runTimeLog(){
		return new RunTimeLog();	
	}
}
